package com.yqya.alibaba.nacos.discovery.server.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import lombok.extern.slf4j.Slf4j;

/**
 * 测试示例
 *
 * @author Kevin
 * @date 2019-07-08
 */
@Slf4j
@RestController
public class HelloController {

    @GetMapping("/hello")
    public String hello(@RequestParam("name") String name) {
        String msg = "你好，" + name;
        log.info("++++++ HelloController::hello " + msg);
        return msg;
    }

}
